import request from '@/utils/request'

// 查询投诉类型列表
export function listComplaintType(query) {
  return request({
    url: '/business/complaintType/list',
    method: 'get',
    params: query
  })
}

// 查询投诉类型详细
export function getComplaintType(id) {
  return request({
    url: '/business/complaintType/' + id,
    method: 'get'
  })
}

// 新增投诉类型
export function addComplaintType(data) {
  return request({
    url: '/business/complaintType',
    method: 'post',
    data: data
  })
}

// 修改投诉类型
export function updateComplaintType(data) {
  return request({
    url: '/business/complaintType',
    method: 'put',
    data: data
  })
}

// 删除投诉类型
export function delComplaintType(id) {
  return request({
    url: '/business/complaintType/' + id,
    method: 'delete'
  })
}
